#pragma once

#include "types.h"
#include <stdlib.h>

OPEN_JLIB_NS


struct Allocator {

  virtual ~Allocator () {
  }

  virtual void *allocate (uwl size) {
    return malloc(size);
  }

  virtual void deallocate (void *base, uwl size) {
    free(base);
  }
};


CLOSE_JLIB_NS